package sist.erp.db.Insa;

import java.util.List;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

public class DiligenceManager extends SqlMapClientDaoSupport {
	
	public List diligenceSearch(DiligenceVO vo) throws Exception{
		return getSqlMapClientTemplate().queryForList("diligenceSearch",vo);
	}
	public DiligenceVO diligenceInfo(DiligenceVO vo) throws Exception{
		return (DiligenceVO)getSqlMapClientTemplate().queryForObject("diligenceInfo",vo);
	}
	public Integer diligenceLate(int emp_no) throws Exception{
		return (Integer)getSqlMapClientTemplate().queryForObject("diligenceLate",emp_no);
	}
	public Integer diligenceAdd(int emp_no) throws Exception{
		return (Integer)getSqlMapClientTemplate().queryForObject("diligenceAdd",emp_no);
	}
	public Integer diligenceTime(int emp_no) throws Exception{
		return (Integer)getSqlMapClientTemplate().queryForObject("diligenceTime",emp_no);
	}
	public void diligenceModifyUpdate(DiligenceVO vo) throws Exception{
		getSqlMapClient().update("diligenceModifyUpdate",vo);
	}
	public void diligenceModifyLatetMinus(DiligenceVO vo) throws Exception{
		getSqlMapClient().update("diligenceModifyLatetMinus",vo);
	}
	public void diligenceModifyLatetAdd(DiligenceVO vo) throws Exception{
		getSqlMapClient().update("diligenceModifyLatetAdd",vo);
	}
	public void diligenceModifyAddAdd(DiligenceVO vo) throws Exception{
		getSqlMapClient().update("diligenceModifyAddAdd",vo);
	}
	public void diligenceModifyAddMinus(DiligenceVO vo) throws Exception{
		getSqlMapClient().update("diligenceModifyAddMinus",vo);
	}
	public void diligenceModifyDelete(int diligence_no) throws Exception{
		getSqlMapClient().delete("diligenceModifyDelete",diligence_no);
	}
	public void diligenceModifyEnd(DiligenceVO vo) throws Exception{
		getSqlMapClient().update("diligenceModifyEnd",vo);
	}
	public void diligenceModifyTime(DiligenceVO vo) throws Exception{
		getSqlMapClient().update("diligenceModifyTime",vo);
	}
}
